package org.little.beans.factory.support;

import org.little.beans.BeanDefinition;

public interface BeanNameGenerotor {

    /**
     * Generate a bean name for the given bean definition.
     * @param beanDefinition the bean definition to generate a name for
     * @param registry the bean definition registry that the given definition is supposed to be registered with
     * @return the generated bean name
     */
    String generateBeanName(BeanDefinition beanDefinition, BeanDefinitionRegistry registry);
}
